<!--{subtemplate inc/header}-->
<div id="sysmsg-box">
	<div id="sysmsg-error" class="sysmsg{if $error == ''} hidden{/if}">
		<div><span class="fl">$error</span><span class="close">关闭</span></div>
	</div>
	<div id="sysmsg-success" class="sysmsg{if $success == ''} hidden{/if}">
		<div><span class="fl">$success</span><span class="close">关闭</span></div>
	</div>
</div>
<div class="blank20"></div>
<div class="hbox">
<dl class="fanwe-box">
	<dt><strong>意见反馈</strong></dt>
	<dd class="content form">
		<form name="message" action="{u message/submit}" id="consult-add-form" method="post" />
			<div class="field">
			<label>您的称呼</label>
			<input tabindex="1" type="text" size="30" name="user_name" id="user_name" class="f-input" value=""/>
			</div>
			<div class="field">
				<label>主题</label>
				<input tabindex="2" type="text" size="30" name="title" id="title" class="f-input" value="" />
			</div>
			<div class="field">
				<label>联系方式</label>
				<input tabindex="2" type="text" size="30" name="tel" id="tel" class="f-input" value="" />
			</div>
			<div class="field">
				<label>Email</label>
				<input tabindex="2" type="text" size="30" name="user_email" id="user_email" class="f-input" value="" />
			</div>
			<div class="field">
				<label>QQ/MSN</label>
				<input tabindex="2" type="text" size="30" name="qq_msn" id="qq-msn" class="f-input" value="" />
			</div>
			<div class="field">
				<label>内容</label>
				<textarea class="f-input f-textarea" name="content" id="msg-content"></textarea>
			</div>
			<div class="blank12"></div>
			<div class="act">									
				<input type="hidden" name="action" value="submit" />
				<input type="submit" class="f-submit" value="提交" id="commit-submit"/>
			</div>
		</form>
	</dd>
</dl>
</div>
<script type="text/javascript">
jQuery(function($){
	$("#commit-submit").click(function(){
		if(!$.checkRequire($("#user_name").val()))
		{
			$.showErr("请输入您的称呼");
			return false;
		}
		
		if(!$.checkRequire($("#title").val()))
		{
			$.showErr("您输入主题");
			return false;
		}
		
		if($.checkRequire($("#user_email").val()))
		{
			if(!$.checkEmail($("#user_email").val()))
			{
				$.showErr("您输入了错误的 Email 地址");
				return false;
			}
		}
		
		if(!$.checkRequire($("#msg-content").val()))
		{
			$.showErr("您输入内容");
			return false;
		}
	});
});
</script>
<!--{subtemplate inc/footer}-->